Style Layers

  • The base style layer class from which all other style layer classes inherit. Style layers allow runtime customization of all map styling properties.

    You should use the concrete subclasses of MGLBaseStyleLayer (which conform to MGLStyleLayer) to style fill, line, symbol, and other layer types.

    See more

    Declaration

    Objective-C

    @interface MGLBaseStyleLayer : NSObject

    Swift

    class MGLBaseStyleLayer : NSObject
  • A map style’s background layer is the bottommost layer and is used to style a color or pattern to show below all other map features. You can query an MGLMapView for its style and obtain the background layer using the -[MGLStyle layerWithIdentifier:] method and passing background for the identifier.

    See more

    Declaration

    Objective-C

    @interface MGLBackgroundStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>

    Swift

    class MGLBackgroundStyleLayer : MGLBaseStyleLayer
  • A circle layer which allows customization of styling properties at runtime. You may instantiate a new circle layer to add to a map style or you may query an MGLMapView for its style and obtain existing layers using the -[MGLStyle layerWithIdentifier:] method.

    See more

    Declaration

    Objective-C

    @interface MGLCircleStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>

    Swift

    class MGLCircleStyleLayer : MGLBaseStyleLayer
  • A fill layer which allows customization of styling properties at runtime. You may instantiate a new fill layer to add to a map style or you may query an MGLMapView for its style and obtain existing layers using the -[MGLStyle layerWithIdentifier:] method.

    See more

    Declaration

    Objective-C

    @interface MGLFillStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>

    Swift

    class MGLFillStyleLayer : MGLBaseStyleLayer
  • A line layer which allows customization of styling properties at runtime. You may instantiate a new line layer to add to a map style or you may query an MGLMapView for its style and obtain existing layers using the -[MGLStyle layerWithIdentifier:] method.

    See more

    Declaration

    Objective-C

    @interface MGLLineStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>

    Swift

    class MGLLineStyleLayer : MGLBaseStyleLayer
  • A raster layer which allows customization of styling properties at runtime. You may instantiate a new raster layer to add to a map style or you may query an MGLMapView for its style and obtain existing layers using the -[MGLStyle layerWithIdentifier:] method.

    See more

    Declaration

    Objective-C

    @interface MGLRasterStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>

    Swift

    class MGLRasterStyleLayer : MGLBaseStyleLayer
  • A symbol layer which allows customization of styling properties at runtime. You may instantiate a new symbol layer to add to a map style or you may query an MGLMapView for its style and obtain existing layers using the -[MGLStyle layerWithIdentifier:] method.

    See more

    Declaration

    Objective-C

    @interface MGLSymbolStyleLayer : MGLBaseStyleLayer <MGLStyleLayer>

    Swift

    class MGLSymbolStyleLayer : MGLBaseStyleLayer